/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package myfirstjunit;

import org.junit.*;
import static org.junit.Assert.*;

/**
 *
 * @author x00089801
 */
public class MyfirstJunitTest {
    
    public MyfirstJunitTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of main method, of class MyfirstJunit.
     */
    @Test
    public void testMain() {
        System.out.println("main");
        String[] args = null;
        MyfirstJunit.main(args);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of grade method, of class MyfirstJunit.
     */
    @Test
    public void testGrade() {
        System.out.println("grade");
        int  exam = 99;
        int  ca = 99;
        String  expResult = "Pass with distinction";
        String result = MyfirstJunit.grade(exam, ca);
        assertEquals(expResult, result);
        
        // TODO review the generated test code and remove the default call to fail.
       // fail("The test case is a prototype.");
    }
}
